import request from '@/utils/request'

// 查询大-历史数据列表
export function listAllData(data) {
  return request({
    url: '/datastatistics/terminalhistory/listAll',
    method: 'get',
    params: data
  })
}

// 查询大-历史数据列表
export function listData(data) {
  return request({
    url: '/datastatistics/terminalhistory/list',
    method: 'get',
    params: data
  })
}

// 查询大-历史数据详细
export function getData(TerminalID) {
  return request({
    url: '/datastatistics/terminalhistory/' + TerminalID,
    method: 'get'
  })
}

// 新增大-历史数据
export function addData(data) {
  return request({
    url: '/datastatistics/terminalhistory',
    method: 'post',
    data: data
  })
}

// 修改大-历史数据
export function updateData(data) {
  return request({
    url: '/datastatistics/terminalhistory',
    method: 'put',
    data: data
  })
}

// 删除大-历史数据
export function delData(TerminalID) {
  return request({
    url: '/datastatistics/terminalhistory/' + TerminalID,
    method: 'delete'
  })
}

// 区域下的大用户表设备
export function getareadevice(AreaCode) {
  return request({
    url: '/basedata/terminalsdb/getTerminalListByAreaCode?AreaCode=' + AreaCode,
    method: 'get'
  })
}

